package cn.sumpu.app.guoguojie.domain.Ext;


import cn.sumpu.app.guoguojie.constant.Expression;
import cn.sumpu.app.guoguojie.domain.Doing;
import cn.sumpu.app.guoguojie.domain.Feed;
import cn.sumpu.app.guoguojie.util.Common;

public class FeedExt extends Feed {
	private static final long serialVersionUID = 8714750923675319817L;
	// ffm邻居家成员
	private String friendFamilyDoorplate;
	private String addFriendFamilyDoorplate;// addFriendFamilyDoorplate与addFriendFamily成为好友
	private String friendFamilyNickname;
	private String addFriendFamily;
	private String friendFamilyMemberId;
	private String ffmUsername;
	private String friendAvatar;
	private String familyAvatar;
	private String ffmavatar;
	private String ffavatar;
	private String bodyData;
	private String summeryContent;
	private Integer feedCommentCount;
	
	
	private String rootId; 
	private String toId;
	private String toMember;
	private String type;
	private Integer forwards;
	
	private Doing rootDoing;
	
	
	
	public Integer getFeedCommentCount() {
		return feedCommentCount;
	}

	public void setFeedCommentCount(Integer feedCommentCount) {
		this.feedCommentCount = feedCommentCount;
	}

	public String getAddFriendFamilyDoorplate() {
		return addFriendFamilyDoorplate;
	}

	public void setAddFriendFamilyDoorplate(String addFriendFamilyDoorplate) {
		this.addFriendFamilyDoorplate = addFriendFamilyDoorplate;
	}

	public String getFfavatar() {
		return ffavatar;
	}

	public void setFfavatar(String ffavatar) {
		this.ffavatar = ffavatar;
	}

	public String getSummeryContent() {
		return summeryContent;
	}

	public void setSummeryContent(String summeryContent) {
		this.summeryContent = summeryContent;
	}


	public String getFriendFamilyNickname() {
		return friendFamilyNickname;
	}

	public void setFriendFamilyNickname(String friendFamilyNickname) {
		this.friendFamilyNickname = friendFamilyNickname;
	}

	public String getFriendFamilyDoorplate() {
		return friendFamilyDoorplate;
	}

	public void setFriendFamilyDoorplate(String friendFamilyDoorplate) {
		this.friendFamilyDoorplate = friendFamilyDoorplate;
	}

	public String getFriendFamilyMemberId() {
		return friendFamilyMemberId;
	}

	public void setFriendFamilyMemberId(String friendFamilyMemberId) {
		this.friendFamilyMemberId = friendFamilyMemberId;
	}

	public String getFfmavatar() {
		return ffmavatar;
	}

	public void setFfmavatar(String ffmavatar) {
		this.ffmavatar = ffmavatar;
	}

	public String getFfmUsername() {
		return ffmUsername;
	}

	public void setFfmUsername(String ffmUsername) {
		this.ffmUsername = ffmUsername;
	}

	public String getAddFriendFamily() {
		return addFriendFamily;
	}

	public void setAddFriendFamily(String addFriendFamily) {
		this.addFriendFamily = addFriendFamily;
	}

	public String getFriendAvatar() {
		if (Common.empty(friendAvatar)) {
			friendAvatar = Common.AVATAR_FAMILY_DEFALUT;
		}
		return friendAvatar;
	}

	public void setFriendAvatar(String friendAvatar) {
		this.friendAvatar = friendAvatar;
	}

	public String getFamilyAvatar() {
		if (Common.empty(familyAvatar)) {
			familyAvatar = Common.AVATAR_FAMILY_DEFALUT;
		}
		return familyAvatar;
	}

	public void setFamilyAvatar(String familyAvatar) {
		this.familyAvatar = familyAvatar;
	}

	public String getBodyData() {
		return bodyData;
	}

	public void setBodyData(String bodyData) {
		this.bodyData = bodyData;
	}

	public String getFormatBodyData() {
		return Common.htmlSpecialChars(bodyData);
	}

	public String getReplaceBodyData(){
		return Expression.replaceAll(bodyData);
	}

	public String getRootId() {
		return rootId;
	}

	public void setRootId(String rootId) {
		this.rootId = rootId;
	}

	public String getToId() {
		return toId;
	}

	public void setToId(String toId) {
		this.toId = toId;
	}

	public String getToMember() {
		return toMember;
	}

	public void setToMember(String toMember) {
		this.toMember = toMember;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	
	public Integer getForwards() {
		return forwards;
	}

	public void setForwards(Integer forwards) {
		this.forwards = forwards;
	}
	

	public Doing getRootDoing() {
		return rootDoing;
	}

	public void setRootDoing(Doing rootDoing) {
		this.rootDoing = rootDoing;
	}

	public String getFormatTime(){
		return Common.getDate(getGmtCreated());
	}
	
}
